package com.frank;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableFeignClients(basePackages = {"com.frank.*"})
@SpringBootApplication
//@EnableHystrixDashboard   暂时不开启熔断
@EnableScheduling  // 开启定时任务
@MapperScan(basePackages = {"com.frank.*"})
@EnableAsync
// 由于开启的spring security 需要登录 user 密码是123456  如果没有配置启动时随机生成的 看log
@EnableJpaAuditing
public class SpringbootLearnApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootLearnApplication.class, args);
    }

}
